#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :cp2_2.17.py
# @Time     :2023/8/20 14:14
# @Author   :Ash

if __name__ == "__main__":
    fruits = ['grape', 'raspberry', 'apple', 'banana']
    print(sorted(fruits))
    print(fruits)
    print(sorted(fruits, reverse=True))
    print(sorted(fruits, key=len))
    print(sorted(fruits, key=len, reverse=True))
    print(fruits.sort())
    print(fruits)


